import ajax from './ajax';

const BASE_URL = 'https://wx-user-where.zhengfengmx.com/';
// const BASE_URL = 'http://192.168.1.177:9999/'

//获取人员列表
export const getPersonnelList = (id)=> ajax(BASE_URL + "working/exhibition/url/dept/" + id);

//根据关键词获取单位列表
export const getOfficelList = (paramas)=> ajax(BASE_URL + "admin/dept/find/like/name", paramas);

//根据条件获取数据
export const getRegionlDataList = (paramas)=> ajax(BASE_URL + "admin/dept/organ/company/list", paramas);

//根据条件获取街道列表
export const getStreetDataList = (paramas)=> ajax(BASE_URL + "admin/region/special", paramas);

//根据条件获取2级街道列表
export const getTowStreetDataList = (paramas)=> ajax(BASE_URL + "admin/dept/street/company/list", paramas);

//获取上班时间
export const getjJobTime = (paramas)=> ajax(BASE_URL + "scheduling/schedulingObjects/schedulingByDeptId", paramas);

//获取基层列表
export const getGrassrootsList = (paramas)=> ajax(BASE_URL + "admin/dept/baseUnit/list", paramas);

//获取基层2级列表
export const getTowGrass = (paramas)=> ajax(BASE_URL + "admin/dept/baseUnit/list/by/Id", paramas);